var mySwiper = new Swiper('.swiper-container',{
			slidesPerView : 'auto',
			/*slidesPerGroup : 3,*/
			direction: 'horizontal',
			/*loop: true,*/
		    //触摸滑动
		   /* touchRadio: 1,
		    paginationType: 'bullets',*/
		    /*autoplay : 4000,
		    autoplayDisableOnInteraction : false*/
			})



$(function(){
	$(".submit").on("click",function(){
		var vl=$("#textNeed").val(); 	
		if(vl==""||vl==null){
			alert("请输入需求信息");
		}else{
			$.ajax({
				type : "POST",
				dataType : 'json',
				url : "/eshop/addPersonalCenterRemark.json",
				data : {
					"remark" : vl
				},
				success : function(data) {
					console.log(data);
					console.log(data["responseEntity"]);
					console.log(data["responseEntity"]["code"]);
					if (data["responseEntity"]["code"]== 200) {
						alert("提交成功");
					}else{

						alert("网络错误，请稍后重试");
					}
				}
			})
		}
	})
})

$('.logout').click(function(){
	$.ajax({
		type : "get",
		url : "/eshop/user/signoutAction.json",
		dataType : "json",
		data:{},
		success:function(data){
			window.location.href="/eshop/saleEshopList.htm";
		}
	})
})